import sqlite3
import re
mids = []
paf =
path =


def main():
    conn = sqlite3.connect("自研.db")
    cursor = conn.cursor()
    with open(path, "r") as f:
        for line in f.readlines():
            res = re.findall("mid:(.*).*cmd:(.*)", )
            if (res): 
                cursor.execute("insert info CliSearch (mid, cmd) values(?,?)", res)



if __name__ == "__main__":
    main()
